package mock_stringlength

import (
	"github.com/golang/mock/gomock"
	"golang.org/x/net/context"
	"google.golang.org/grpc"
	"myrpc/stringlength/stringlength"
)

type MockStringLengthClient struct {
	ctrl     *gomock.Controller
	recorder *_MockStringLengthClientRecorder
}

type _MockStringLengthClientRecorder struct {
	mock *MockStringLengthClient
}

func NewMockStringLengthClient(ctrl *gomock.Controller) *MockStringLengthClient {
	mock := &MockStringLengthClient{ctrl: ctrl}
	mock.recorder = &_MockStringLengthClientRecorder{mock}
	return mock
}

func (m *MockStringLengthClient) EXCEPT() *_MockStringLengthClientRecorder {
	return m.recorder
}

func (m *MockStringLengthClient) StringLength(_param0 context.Context, _param1 *stringlength.StringSource, _param2 ...grpc.CallOption) (*stringlength.LengthResult, error) {
	_s := []interface{}{_param0, _param1}
	for _, x := range _param2 {
		_s = append(_s, x)
	}
	ret := m.ctrl.Call(m, "StringLength", _s...)
	ret0, _ := ret[0].(*stringlength.LengthResult)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

func (_mr *_MockStringLengthClientRecorder) StringLength(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
	_s := append([]interface{}{arg0, arg1}, arg2...)
	return _mr.mock.ctrl.RecordCall(_mr.mock, "StringLength", _s...)
}
